package com.lumm.services;

import com.lumm.model.*;

import java.io.File;
import java.util.Date;
import java.util.List;

public interface UserService {
    public User querybyUserId(int userId);

    public int insert(User user);

    public int login(String id,String password);

    public String sendEmailVcode(String toAddress,String action);

    public boolean checkEmailAvailability(String email);

    public User createNewUser(String email, String password, String gender, String name, Date birthday, String phoneNum, short maritalStatus);

    public Details getUserDetails(int userId);

    public Favour getUserFavour(int userId);

    public User resetPassword(String email,String password);

    public int getUserCount();

    public List<User> getUserList(int offset,int count);

    public int addNewUser(String email, String gender, String name, Date birthday, String phoneNum, short maritalStatus);

    public int deleteUser(int userId);

    public int updateUserInfo(int userId, String gender, String name, Date birthday, String phoneNum, short maritalStatus);

    public List<User> importUserList(File listFile);

    //public int updateUserInfo(int userId, )

    public List<RecommendItem> searchUserByKeyword(String keyword);

    public List<User> getUserByKeyword(String keyword);

    public int updateUserInfo(User user, DetailsWithBLOBs details, Favour favour);


}
